package com.bosssoft.permission.centre.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sd365.common.core.common.pojo.entity.TenantBaseEntity;


import javax.persistence.Table;
import java.util.Date;

@Table(name = "basic_sub_system")
public class SubSystem extends TenantBaseEntity {
    /**
     * 子系统名
     */

    private String name;

    /**
     * 子系统代码
     */

    private String code;

    /**
     * 子系统图标
     */

    private String imageUrl;

    /**
     * 链接
     */

    private String link;

    /**
     * 备注
     */

    private String remark;


    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /**
     *
     */

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    /**
     * 子系统名
     */
    public String getName() {
        return name;
    }

    /**
     * 子系统名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 子系统代码
     */
    public String getCode() {
        return code;
    }

    /**
     * 子系统代码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 子系统图标
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 子系统图标
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 链接
     */
    public String getLink() {
        return link;
    }

    /**
     * 链接
     */
    public void setLink(String link) {
        this.link = link;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 公司
     */

    private Company company;

    /**
     * 机构
     */

    private Organization organization;

    /**
     * 租户
     */

    private Tenant tenant;

    @Override
    public Date getCreatedTime() {
        return createdTime;
    }

    @Override
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public Date getUpdatedTime() {
        return updatedTime;
    }

    @Override
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public Organization getOrganization() {
        return organization;
    }

    public void setOrganization(Organization organization) {
        this.organization = organization;
    }

    public Tenant getTenant() {
        return tenant;
    }

    public void setTenant(Tenant tenant) {
        this.tenant = tenant;
    }
}
